# 删除指定条件的键值对,这里是键里面含有k的
dic1 = {'k1':213,'k2':3213,'k3':2334,'name':'ZhangHuBin'}
a = list(dic1.keys())
for i in a :
    if 'k' in i :
        dic1.pop(i)
print(dic1)